<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWeixinsTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('weixins', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('名称|标题');
            $table->text('value')->comment('值|内容');
            $table->timestamps();
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('weixins');
    }
}
